package com.example.boot.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class Configs {
    //取值表达式取值
    //@Value("group1.type1.value1")
    @Value("${group1.type1.value1}")
    private String value1;

    public String printAllValus() {
        String v = "自定义配置:" + value1;
        System.out.println(v);
        return v;
    }
}
